home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / tclX6.4c / dist / RCS / Config.mk,v < prev    next >
Encoding:
Text File  |  1992-12-03  |  12.9 KB  |  342 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    jhh:1.1; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.1
  10. date     92.12.02.22.57.01;  author jhh;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @#
  26. # Config.mk --
  27. #
  28. #   Master configuration file for Extended Tcl.  This should be the only
  29. # file you have to modify to get Extended Tcl to work.
  30. #------------------------------------------------------------------------------
  31. # Copyright 1992 Karl Lehenbauer and Mark Diekhans.
  32. #
  33. # Permission to use, copy, modify, and distribute this software and its
  34. # documentation for any purpose and without fee is hereby granted, provided
  35. # that the above copyright notice appear in all copies.  Karl Lehenbauer and
  36. # Mark Diekhans make no representations about the suitability of this
  37. # software for any purpose.  It is provided "as is" without express or
  38. # implied warranty.
  39. #------------------------------------------------------------------------------
  40. # $Id: Config.mk,v 1.1 1992/12/02 01:11:30 dglo Exp dglo $
  41. #------------------------------------------------------------------------------
  42. #
  43.  
  44. #==============================================================================
  45. # Configuration file specification.  Set the macro TCL_CONFIG_FILE to the 
  46. # name of the file to use in the config directory (don't include the directory
  47. # name).  If you find problems with these files or have new onces please send
  48. # them to us (tcl-project@@neosoft.com).  At the end of this file is a
  49. # description of all the flags that can be set in the config file.
  50. #
  51. TCL_CONFIG_FILE=sunos4.1
  52.  
  53. #==============================================================================
  54. #
  55. # Configuration section.  Modify this section to set some general options and
  56. # selecting a config file for a specific Unix implementation.
  57. #
  58. #==============================================================================
  59.  
  60. #------------------------------------------------------------------------------
  61. # Location of the UCB Tcl distribution relative to this directory.  TclX works
  62. # with Tcl 6.3 and Tcl 6.4.
  63. #
  64. TCL_UCB_DIR=../tcl-6.4
  65.  
  66. #------------------------------------------------------------------------------
  67. # If you are a Tk user and would like to build a version "wish", the Tk shell,
  68. # that includes the TclX command set, define TCL_TK_SHELL=wish and the
  69. # location of your Tk directory in TCL_TK_DIR relative to this directory. If
  70. # you do not want a "wish" compiled, don't define TCL_TK_SHELL. The libraries
  71. # required to link Tk are defined in the system specific sections below.
  72. # TK_LIBRARY must be set to the same value specified in the compile of the Tk
  73. # source.  If TCL_TK_SHELL is define, Tk manual pages will be installed by the
  74. # install script.
  75. #
  76. TCL_TK_SHELL=wishX
  77. TCL_TK_DIR=../tk-2.3
  78. TK_LIBRARY=/usr/sww/X11R5/share/lib/X11/tk-2.3
  79.  
  80. #------------------------------------------------------------------------------
  81. # Compiler debug/optimization/profiling flag to use.  Not that if debugging or
  82. # profiling is enabled, the DO_STRIPPING option below must be disabled.
  83. #
  84. OPTIMIZE_FLAG=-O
  85.  
  86. #------------------------------------------------------------------------------
  87. # Stripping of the final tclshell binary.  Specify `true' if the binary is to
  88. # be stripped (optimized case) or specify `false' if the binary is not to be
  89. # stripped (debugging case).
  90. #
  91. #DO_STRIPPING=false
  92. DO_STRIPPING=true
  93.  
  94. #------------------------------------------------------------------------------
  95. # Definition of the compiler you want to use, as well as extra flags for the
  96. # compiler and linker.  Also the yacc program you wish to use.
  97. #
  98. CC=cc
  99. AR=ar
  100. XCFLAGS=-I/usr/sww/X11R5/include
  101. XLDFLAGS=-L/usr/sww/X11R5/lib
  102. YACC=yacc
  103. #YACC=bison -b y
  104.  
  105. #------------------------------------------------------------------------------
  106. # If C++ is to be used these should be used.  Specifying CPLUSOBJS includes the
  107. # C++ support code in the Tcl library. CCPLUS is the command to run your C++
  108. # compiler. CPLUSINCL is the location of your standard C++  include files.
  109. #
  110. #CPLUSOBJS=tcl++.o
  111. CCPLUS=CC
  112. CPLUSINCL=/usr/include/CC
  113.  
  114. #------------------------------------------------------------------------------
  115. # Enable or disable Tcl history in the Tcl flag.  If this macro is set to
  116. # '-DTCL_NOHISTORY', the `history' command will not be available in the Tcl
  117. # shell.  Many people do not find the history command useful and its rather
  118. # large, so this way it can be excluded from the standard shell.  It will
  119. # still be in the library and will be available in other applications if they
  120. # use `Tcl_RecordAndEval'.
  121. #
  122. HISTORY_FLAG=
  123.  
  124. #------------------------------------------------------------------------------
  125. # Memory debugging defines.  These are only of interest if you are adding C
  126. # code to Tcl or debugging Tcl C code. You probably don't need this unless it
  127. # seems like you have memory problems. They help find memory overwrites and
  128. # leaks.  One or more of the following flags may be specified (in the form
  129. # -DFLAGNAME).
  130. #
  131. #    o TCL_MEM_DEBUG - Turn on memory debugging. 
  132. #    o TCL_SHELL_MEM_LEAK - Dump a list of active memory blocks when the
  133. #      shell exits an eof (requires TCL_MEM_DEBUG).
  134. #
  135. # NOTE: If TCL_MEM_DEBUG is enabled, the Berkeley Tcl distribution must be 
  136. # recompiled with this option as well, or it will not link or may fail
  137. # with some mysterious memory problems.  Same goes for Tk if you are using
  138. # Tk.  If this option is to be used, all code being tested MUST be compiled
  139. # with TCL_MEM_DEBUG and use ckalloc and ckfree for all memory passed between
  140. # the application and Tcl.
  141. #
  142. # An addition a flag MEM_VALIDATE may be specified in the Berkeley Tcl
  143. # compilation to do validation of all memory blocks on each allocation or
  144. # deallocation (very slow).
  145. #
  146. MEM_DEBUG_FLAGS=
  147.  
  148. #==============================================================================
  149. # Install options sections.  This sections describes the installation options.
  150. # Your might want to change some of these values before installing.
  151. #..............................................................................
  152. #
  153. # o TCL_OWNER - The user that will own all Tcl files after installation.
  154. # o TCL_GROUP - The group that all Tcl files will belong to after installation.
  155. #
  156. TCL_OWNER=sww
  157. TCL_GROUP=sww
  158.  
  159. # o TCL_DEFAULT - Base name of Tcl default file.  This name will have a
  160. #   version number appended.
  161. #
  162. #TCL_DEFAULT=/etc/default/tcl
  163. TCL_DEFAULT=/usr/sww/lib/tclXdefault
  164.  
  165. #
  166. # The directory to install Tcl binary into.
  167. #
  168. TCL_BINDIR=/usr/sww/bin
  169. TCL_SHELL=tclX
  170. #
  171. # The directory tcl.a library goes into.
  172. #
  173. TCL_LIBDIR=/usr/sww/lib
  174.  
  175. #
  176. # The directory the Tcl .h files go into.
  177. #
  178. TCL_INCLUDEDIR=/usr/sww/include
  179.  
  180. #
  181. # The directory .tcl files and the .tlib library goes into.
  182. #
  183. TCL_TCLDIR=/usr/sww/tclX-6.4
  184.  
  185. #==============================================================================
  186. # These defines specify where and how the manual pages are to be installed.
  187. # They are actually defined in the system specific configuration file in the
  188. # config directory.  Install manual pages is somewhat problematic, so a global
  189. # option not to install manual pages is provided. Since there are so many
  190. # manual pages provided, they are placed together in one Tcl manual page
  191. # directory, rather than splitting into the standard manual pages directories.
  192. # The actual definitions of these variables are set for in the system
  193. # dependent file.  You might want to modify these values.
  194. #..............................................................................
  195.  
  196. #
  197. # Set to 1 to install manual files, to 0 to not install manual files.
  198. #
  199.  
  200. TCL_MAN_INSTALL=1
  201.  
  202. #
  203. # o TCL_MAN_BASEDIR - Base manual directory where all of the man.* and cat.*
  204. #   directories live.
  205. #
  206. TCL_MAN_BASEDIR=/usr/sww/man
  207.  
  208. #
  209. # o TCL_MAN_CMD_SECTION - Section for Tcl command  manual pages. Normal `1' or
  210. #   `C'.  You might perfer TCL since there are some many.
  211. #
  212. # o TCL_MAN_FUNC_SECTION - Section for Tcl C level function manual pages.
  213. #   In some cases it might be desirable install all manual pages in one
  214. #   section, in this case, the value should be the same as TCL_MAN_CMD_SECTION.
  215. #
  216. #TCL_MAN_CMD_SECTION=TCL
  217. #TCL_MAN_FUNC_SECTION=TCL
  218. TCL_MAN_CMD_SECTION=1
  219. TCL_MAN_FUNC_SECTION=3
  220.  
  221. #
  222. # o TK_MAN_CMD_SECTION - Section for Tk command  manual pages. Normal `1' or
  223. #   `C'.  You might perfer TK since there are some many.
  224. #
  225. # o TK_MAN_FUNC_SECTION - Section for Tk C level function manual pages.
  226. #   In some cases it might be desirable install all manual pages in one
  227. #   section, in this case, the value should be the same as TK_MAN_CMD_SECTION.
  228. #
  229. #TK_MAN_CMD_SECTION=TK
  230. #TK_MAN_FUNC_SECTION=TK
  231. TK_MAN_CMD_SECTION=1
  232. TK_MAN_FUNC_SECTION=3
  233.  
  234.  
  235. #..............................................................................
  236. # The rest of the manual page install options are set in the system dependent
  237. # configuration file (config/*)
  238. #
  239.  
  240. # o TCL_MAN_SEPARATOR - The separator character used in the directory name
  241. #   of the cat* and man* manual directories.  This is usually empty or 
  242. #   a period.
  243. #
  244. # o TCL_MAN_STYLE - The style of manual management the system has.It is
  245. #   a string with one of the following values:
  246. #      o SHORT - Short file name installation (an index can be generated).
  247. #      o LONG - Long file name installation, a link will be made for each
  248. #        name the manual page is to be available under.
  249. #   This flag is optional, if omitted LONG is assumed.
  250. #
  251. # o TCL_MAN_INDEX - If 1, then a manual page index will be build in the manual
  252. #   base directory named index.TCL. Not useful if TCL_MAN_STYLE is LONG. Each
  253. #   line in the file has the form:
  254. #       mansubject manfile section
  255. #   This flag is optional, if omitted 0 is assumed.
  256. #
  257.  
  258. #==============================================================================
  259. # System specific configuration.  A system configuration file in the config
  260. # directory defines the following mactos required for your version of Unix.
  261. # In addition to the options defined in the Berkeley source the following
  262. # options can be defined here.  This information will help you build your own
  263. # system configuration if one is not supplied here.  The configuration file
  264. # name is specified an the end of this section.
  265. #
  266. #    o SYS_DEP_FLAGS - The system dependency flags.  The following options are
  267. #      available, these should be defined using -Dflag.
  268. #
  269. #      o TCL_HAVE_SETLINEBUF - Define if the `setlinebuf' is available as part
  270. #        of stdio.
  271. #
  272. #      o TCL_32_BIT_RANDOM - Define if the `rand' function returns a value in
  273. #        the range 0..(2^31)-1, leave undefined if `rand' returns a value
  274. #        in the range 0..(2^15)-1.
  275. #
  276. #      o TCL_NO_SELECT - The select call is not available.
  277. #
  278. #      o TCL_NEED_SYS_SELECT_H - Define if <sys/select.h> is required. May not
  279. #        need it, even if it is there.
  280. #
  281. #      o TCL_USE_BZERO_MACRO - Use a macro to define bzero for the select
  282. #        FD_ZERO macro.
  283. #
  284. #      o TCL_POSIX_SIG - Set if posix signals are available (sigaction, etc).
  285. #
  286. #      o TCL_HAVE_CATGETS - Set if XPG/3 message catalogs are available
  287. #        (catopen, catgets, etc).
  288. #
  289. #      o TCL_TM_GMTOFF - Set if the seconds east of GMT field in struct tm is
  290. #        names 'tm_gmtoff'.  Not set if its is names 'tm_tzadj'.
  291. #
  292. #      o TCL_TIMEZONE_VAR - If the timezone varaible is used in place of 
  293. #        one of the fields from struct tm.
  294. #
  295. #      o TCL_NEED_TIME_H - Set if time.h is required.
  296. #
  297. #      o TCL_SIG_PROC_INT - Set if signal functions return int rather than
  298. #        void.
  299. #
  300. #      o TCL_NO_ITIMER - Set if setitimer is not available.
  301. #
  302. #      o TCL_IEEE_FP_MATH - Set if IEEE 745-1985 error reporting via the value
  303. #        a function returns is to be used instead of the standard matherr
  304. #        mechanism.
  305. #
  306. #      o TCL_NO_FILE_LOCKING - Set if the fcntl system call does not support
  307. #        file locking.
  308. #
  309. #      o TCL_DUP_CLK_TCK - On some systems that have both time.h and
  310. #        sys/time.h, tclUnix.h defines CLK_TCK then tclExtdInt.h includes
  311. #        time.h and you get a redefiniton warning.  Set this flag to prevent
  312. #        the warning (its not safe to just unset it).
  313. #
  314. #    o LIBS - The flags to specify when linking the tclshell.
  315. #
  316. #    o TCL_TK_LIBS - The libraries to link the TK wish program.  This should
  317. #      also include libraries specified for LIBS, as both values may not be
  318. #      used together due to library ordering constraints.
  319. #
  320. #    o RANLIB_CMD - Either `ranlib' if ranlib is required or `true' if ranlib
  321. #      should not be used.
  322. #
  323. #    o MCS_CMD - Command to delete comments from the object file comment
  324. #      section, if available.  The command `true' if it's not available.  This
  325. #      makes the object file even smaller after its stipped.
  326. #
  327. #    o SUPPORT_FLAGS - The flags for SUPPORT_OBJS code.  The following options
  328. #      are available, these should be defined using -Dflag.
  329. #
  330. #      o TCL_HAS_TM_ZONE - If if 'struct tm' has the 'tm_zone' field.   Used
  331. #        by strftime.
  332. #
  333. #    o SUPPORT_OBJS - The object files to compile to implement library 
  334. #      functions that are not available on this particular version of Unix or 
  335. #      do not function correctly.  The following are available:
  336. #         o strftime.o
  337. #
  338. #..............................................................................
  339.  
  340. @
  341.